import request from '@/utils/request'

// 查询校园公益列表
export function listStuhelp(query) {
  return request({
    url: '/stuhelp/stuhelp/list',
    method: 'get',
    params: query
  })
}

// 查询校园公益详细
export function getStuhelp(shelpId) {
  return request({
    url: '/stuhelp/stuhelp/' + shelpId,
    method: 'get'
  })
}

// 新增校园公益
export function addStuhelp(data) {
  return request({
    url: '/stuhelp/stuhelp',
    method: 'post',
    data: data
  })
}

// 修改校园公益
export function updateStuhelp(data) {
  return request({
    url: '/stuhelp/stuhelp',
    method: 'put',
    data: data
  })
}

// 删除校园公益
export function delStuhelp(shelpId) {
  return request({
    url: '/stuhelp/stuhelp/' + shelpId,
    method: 'delete'
  })
}
